﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GeneratorLib.DB;
using GeneratorLib.DB.Connectios;
using GeneratorLib.DB.Schemas;


namespace Generator.CusEventArgs
{
    public class TableSelectedEventArg:EventArgs
    {
        public TableInfo Table { get; private set; }
        public FieldInfo Field { get; private set; }
        public bool Result { get; set; }
        public TableSelectedEventArg(TableInfo table)
        {
            this.Table = table;
            this.Field = null;
            Result = false;
        }

        public TableSelectedEventArg(FieldInfo field)
        {
            this.Field = field;
            this.Table = field.Table;
            Result = false;
        }

    }
}
